import React from 'react';
import BasePosts from "./BasePosts";
import {useQuery} from "../Helpers";

export default function ArchivePostsPage(props) {
    const query = useQuery()
    const queryPage = query.get('page')
    const year = props.match.params.year
    const month = props.match.params.month
    const url = `/api/v1/posts/archive/${year}/${month}/`
    const name = `${year}年${month}月`
    return <BasePosts name={name} url={url} queryPage={queryPage}/>
};
